import random
import time

import keyboard
import numpy as np

#
# # 定义取消按键
# cancel_key = 'q'
#
# # 循环钓鱼
# while True:
#     # 退出键
#     if keyboard.is_pressed(cancel_key):
#         print("中断钓鱼")
#         break


# 单位秒
# start_time = time.time()
# time.sleep(2)
# current_time = time.time()
# elapsed_time = current_time - start_time
# print(elapsed_time)


# 随机数
interval_time = random.uniform(0, 3)
print(interval_time)
random_number = np.random.rand()
print(random_number)
